package com.caine.multithread;

import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.TimeUnit;

public class ForkJoinPoolMain {
    public static void main(String[] args) throws InterruptedException {
        ForkJoinPool forkJoinPool = ForkJoinPool.commonPool();
        forkJoinPool.submit(() -> System.out.println("run..."));
        forkJoinPool.awaitTermination(10L, TimeUnit.SECONDS);
    }
}
